Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repeatPlaybackTillEndOfFile command #36

Merged
merged 5 commits into from
Jan 26, 2022
Merged

Conversation

tshino
Copy link
Owner

@tshino tshino commented Jan 16, 2022

Ref. #34

This PR adds new command kb-macro.repeatPlaybackTillEndOfFile.

This command repeats the playback until the cursor reaches the end of the file.
In detail, the behavior is as follows:

  • Perform the playback at least once.
  • Perform each playback atomically.
  • Stop the repeat if the distance between the cursor and the end of the file didn't decline in a playback.
  • The distance is measured mainly using the line count.
  • When comparing two distances (before a particular playback and after that), if the line counts are equal, then it compares the character count between the cursor and the end of the line.

This command can be called by the user via Command Palette.
The command name is Repeat Playback Till End of File.

@tshino tshino merged commit d6c8905 into main Jan 26, 2022
@tshino tshino deleted the playback-till-end-of-file branch March 4, 2022 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant